package Behavioral.Observer.pull;

//设置服务器和客户端数据
public class DataSet {

    private ServerData serverData;

    private ClientData clientData;

    public DataSet(ClientData clientData,ServerData serverData){
        this.clientData = clientData;
        this.serverData = serverData;
    }

//    服务端数据和客户端数据设置相同
    public void setSame(String string){
        clientData.setData(string);
        serverData.setData(string);
    }
}
